using System;
using System.Windows.Forms;
using Microsoft.Xna.Framework;

namespace Mundo_3D
{
    static class Program
    {
        static Game1 game;

        static void Main(string[] args)
        {
            Form_3D form = new Form_3D();
            form.Disposed += new EventHandler(form_Disposed);
            using (game = new Game1(form, new Vector3(1000.0f, 200.0f, 1000.0f), "terreny3"))
            {
                form.Show();
                form.TopMost = true;
                game.IsMouseVisible = false;
                game.Run();
                
            }

        }

        static void form_Disposed(object sender, EventArgs e)
        {
            game.Exit();
        }
    }
}

